<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link rel="stylesheet" href="../style/journal.css" type="text/css" />
<style type="text/css"><!--
.googleadsense {
	margin: 2px;
	padding: 0px;
//--></style><script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-65008-1";
urchinTracker();
</script><title>fail to embed parrot in pugs(Resolved)</title>
</head>
<body>
<a href="index.html">Journal</a>(2005) | <a href="../blog/"><b>Blog</b></a>(2006) | <a href="http://www.fayland.org/cgi-bin/random_link.pl">RandomLink</a> | <a href="AboutFayland.html">WhoAmI</a> | <a href="LiveBookmark.html">LiveBookmark</a> | <a href="http://www.fayland.org/">HomePage</a>
<p><&lt;Previous: <a href="RandomLink.html">随机链接</a>&nbsp;&nbsp;>>Next: <a href="google_sitemap.html">Google Sitemap</a></p>
<h1>fail to embed parrot in pugs(Resolved)</h1>
<div class='content'>
<p>Category: <a href='Diary.html'>Diary</a> &nbsp; Keywords: <b>parrot pugs</b></p><p>I want to write something about Perl6 Rules. but it needs parrot embed to pugs.<br />
After one day's hard attempts, I give up finally.</p>

<p>as follows are something I do.
<ol>
<li>follow the instruction of parrot/README, I download the <a href='http://www-306.ibm.com/software/globalization/icu/downloads.jsp'>http://www-306.ibm.com/software/globalization/icu/downloads.jsp</a>, and success to install the ICU library.</li>
<li>perl Configure.pl<br />
make<br />
make install
<li>now parrot is running. but it's not in my bin directory. weird.
<li>exprot PUGS_EMBED='parrot'<br />
export PARROT_PATH='/usr/local/parrot-0.2.0'<br />
perl Makefile.PL<br />
make
<li>make failed. and these are something I tried to go through the make.
<ul>
<li>First, I should say the make alwasy halts when Compiling the Pugs.AST.Internals and Pugs.Parser. maybe make unoptimized is a better choice.
<li>I google the error, find that autrijus said gcc4+ is not supported yet in his journal. So I downgrade the gcc4 to gcc3+. It doesn't make sense.
<li>I svn the newest parrot, and install it again. then have another try of pugs, but only to another failure.
<li>I cpan the newest <a href='http://search.cpan.org/perldoc?ExtUtils::MakeMaker'>ExtUtils::MakeMaker</a> and no help.
</ul>
<li>Now after tons of successful Compilings, it returns
<pre>Linking ...
/usr/bin/ld: cannot find -lparrot
collect2: ld returned 1 exit status</pre>
<li>I think it's something wrong in my system lib? Anybody can give me a hand?
</ol>

<p>God save me.</p>

<p>PS, I add the "property && but" to <a href='Perl6_ES13.html'>role Example13 { # Perl6 }</a>, next should the subtype and Enum. :)</p>

<h3>Updated</h3>
after I post this to the <a href='http://nntp.perl.org/group/perl.perl6.compiler'>perl.perl6.complier</a>, Greg Matheson point out that I should
<pre>export PARROT_PATH='/root/Desktop/svn/parrot/'</pre>
the make directory, not where parrot is installed.<br />
now pugs with parrot is running. I can test the rule now.<br />
Thanks.

</div>
<p><&lt;Previous: <a href="RandomLink.html">随机链接</a>&nbsp;&nbsp;>>Next: <a href="google_sitemap.html">Google Sitemap</a></p>
<p><strong>Options:</strong> <a href='http://del.icio.us/post?title=fail%20to%20embed%20parrot%20in%20pugs(Resolved)&url=http://www.fayland.org/journal/050604.html'>+Del.icio.us</a></p>
<strong>Related items</strong>
<ul><li><a href='Parrot_in_a_Nutshell.cn.html'>Parrot_in_a_Nutshell(中文翻译版)</a> < <span class='digit'>2004-10-30 19:19:10</span> ></li><li><a href='Parrot_in_a_Nutshell.en.html'>Parrot in a Nutshell(English)</a> < <span class='digit'>2004-10-30 19:20:36</span> ></li><li><a href='050308.html'>weird thing with nmake pugs</a> < <span class='digit'>2005-03-08 23:53:21</span> ></li><li><a href='050329.html'>Day [05.3.29] POD && Pugs</a> < <span class='digit'>2005-03-29 16:04:20</span> ></li></ul>
Created on <span class="digit">2005-06-04 19:09:35</span>, Last modified on <span class="digit">2005-06-06 11:31:05</span><br />
Copyright 2004-2005 All Rights Reserved. Powered by <a href="Eplanet.html">Eplanet</a> && <a href='http://catalyst.perl.org'>Catalyst</a> 5.62.
</body>
</html>